package com.itheima.sparkml.exercise

import org.apache.spark.mllib.linalg.Vectors
import org.apache.spark.mllib.regression.LabeledPoint

object LabeledPoint1 {
  def main(args: Array[String]): Unit = {
    val vector=Vectors.dense(1.0,2.0,3.0)
    val point: LabeledPoint = LabeledPoint(1.0, vector)
    println(point)
    println("label is "+point.label)
    println("features is "+point.features)
  }
}
